@import "_variables.less";

#content-wrap#content-wrap {
  .content,
  .content-inner {
    color: @default-text;
    font-family: @fonts-content;
    font-size: @font-size-content;
    line-height: 1.7;
  }

  .expand-prompt,
  .footer {
    font-family: @fonts-ui;
  }

  .footer {
    padding-right: 5px;
  }

  .content-shrink-wrap {
    margin: 0 -10px;
    padding: 0 10px;
    border-bottom: 1px solid @color-fade3;
  }

  .expand-prompt {
    margin: 20px 0 0;

    &,
    .dijitButtonNode {
      display: block;
    }
    .dijitButtonNode {
      border-color: @color-fade1;
      background-color: fade(@default-fg, 10%);
      color: @color-fade7;
      font-size: 12px;
      font-weight: bold;

      &:hover {
        background-color: fade(@default-fg, 12%);
        color: @color-fade8;
      }
    }
  }

  .content {
    margin: -5px;

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
      margin-top: 2.5 * @font-size-content;
      margin-bottom: @font-size-content;
      font: normal normal bold 1em / 1 @fonts-heading;
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
    }
    h1 {
      .heading-font-size(1);
    }
    h2 {
      .heading-font-size(2);
    }
    h3 {
      .heading-font-size(3);
    }
    h4 {
      .heading-font-size(4);
    }
    h5 {
      .heading-font-size(5);
    }
    h6 {
      .heading-font-size(6);
    }
    p {
      max-width: 45em;
    }
    table {
      border-collapse: collapse;
    }
    tr {
      vertical-align: top;
    }
    th,
    td {
      padding: 0 0.5em;
      border: 1px solid @color-fade3;
    }
    th {
      background-color: @color-fade1;
    }
    table[border="0"] {
      th,
      td {
        padding: 0;
        border: 0;
      }
    }
    hr {
      border: none;
      border-top: 1px solid @color-fade3;
    }
    iframe {
      margin: 0.5em 0;
    }
    img,
    video {
      width: auto;
      max-width: 100%;
      height: auto;
      margin: 0.5em 1em 0.5em 0;
    }
    figure {
      margin: 1em 0;
      font-size: 0.857em;
      font-style: italic;
      line-height: 1.333;
    }
    pre,
    code {
      border: 1px solid @color-fade1;
      background-color: @color-fade1;
      color: inherit;
      font-family: @fonts-mono;
      line-height: 1.333;
    }
    pre {
      padding: 0.5em;
      overflow: auto;
      font-size: 0.786em;
      white-space: pre-wrap;
    }
    code {
      display: inline-block;
      padding: 0 0.31em;
    }
    pre code {
      padding: 0;
      border: none;
      background-color: transparent;
    }
    q,
    blockquote {
      display: block;
      margin: 1em 0;
      padding: 0.31em 1em;
      border-left: 4px solid @color-fade3;
      background-color: @color-fade1;

      :first-child {
        margin-top: 0;
      }
      :last-child {
        margin-bottom: 0;
      }
    }
  }
}
